package main

import "fmt"

func main() {
	menu := [3]string{"Tea", "Coffee", "Juice"}

	slice := menu[:2]
	fmt.Println("Before slice change:")
	fmt.Println("Menu:", menu)
	fmt.Println("Slice:", slice)
	fmt.Println("Length of menu array:", len(menu))
	fmt.Println("Length of slice:", len(slice))

	slice[0] = "Matcha" //同时改变了slice和menu数组的值
	fmt.Println("After slice change:")
	fmt.Println("Menu:", menu)
	fmt.Println("Slice:", slice)
}
